<%--
  Created by IntelliJ IDEA.
  User: HP
  Date: 2021/9/4
  Time: 14:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登陆页面</title>
</head>
<body>
      <h1>登录界面</h1>
      <%
          String errorCode=request.getParameter("error");
          if(errorCode!=""&&errorCode!=null){
              out.print("登录失败！");
          }
      %>
      <%--     form 表单 ，作用 ，提交数据到java后台 ==》servlet--%>
      <form action="login.do" method="post">
          <table border="1">
              <tr>
                  <td>用户名</td>
                  <td><input name="userName" type="text" /></td>
              </tr>
              <tr>
                  <td>密码</td>
                  <td><input name="userPwd" type="password" /></td>
              </tr>
              <tr>
                  <td><input type="submit" value="登陆" /></td>
                  <td><input type="reset" value="重置" /></td>
              </tr>
          </table>
      </form>
</body>
</html>
